<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}


<ul class="layui-tab-title site-demo-title">
	<li class="layui-this"><a href="?m={$m}&c={$c}">单页面管理</a></li>
	<li><a href="?m={$m}&c={$c}&a=add">添加单页面</a></li>
</ul>

<div class="layui-body layui-tab-content site-demo site-demo-body" style="bottom: 0;left: 0; top: 41px;">
	<form action="?" method="post">
		<input type="hidden" name="m" value="{$m}" />
		<input type="hidden" name="c" value="{$c}" />
		<input type="hidden" name="a" value="sort" />
		<table class="layui-table">
			<thead>
                <tr>
                    <th width="40">ID</th>
        			<th>标题</th>
                    <th>添加时间</th>
        			<th>操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $data as $val}
                <tr>
                    <td class="text-c">{$val['id']}</td>
                    <td class="text-c">{$val['title']}</td>
                    <td class="text-c">{date('Y-m-d',$val['dateline'])}</td>
                    <td class="text-c">
                        <a href="?m={$m}&c={$c}&a=add&id={$val['id']}">编辑</a> |
                        <a data-url="admin.php?m={$m}&c={$c}&a=del&id={$val['id']}" data-reload='0' data-tips="确定删除吗？" href="javascript:void(0);" class="a-del">删除</a>
                    </td>
                </tr>
                {/loop}
            </tbody>
		</table>
        <div id="pages" class="layui-laypage">{$multi}</div>
	</form>
</div>

{template index/footer}